<?php

if(wp_verify_nonce($_POST['act_contact_us_send'],'act_contact_us_send'))
{
	if($_POST['Captcha'] != $_SESSION['ma_xac_nhan'])
	{
		$error_result = "Sorry, The code invalid, Please try again.";
		$_SESSION['send_request'] = $_POST;
		require_once TEMPLATEPATH.'/views/contact-form-view.php';		
	}
	else 
	{
		$_SESSION['send_request'] = null;
		require_once TEMPLATEPATH.'/controllers/contact/process.php';
		require_once TEMPLATEPATH.'/views/thanks-view.php';
	}
}
else 
{ 
	$_SESSION['send_request'] = null;
	require_once TEMPLATEPATH.'/views/contact-form-view.php';
} 
  ?>      